<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>扩展运算符</title>
	</head>
	<body>
		<script type="text/javascript" >
			let x = {
				he(){
					console.log('he')
				},
				laoshi(){
					console.log('laoshi')
				}
			}

			let computed = {
				a:1,
				b:2,
				...x
			}
			console.log(computed)
			
		</script>
	</body>
</html>